package com.liuwei.msmall.common.dto.es;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Classname EsSkuModelDTO
 * @Date 2021/4/10 2:53 下午
 * @Created by llww
 */
//用于商品上架时候传给es保存的模型对象
@Data
public class EsSkuModelDTO implements Serializable {

        private Long skuId;
        private Long spuId;
        private String skuTitle;
        private BigDecimal skuPrice;
        private String skuImg;//商品默认图片
        private Long saleCount;//该商品销售数量
        private Boolean hasStock;//商品是否有库存
        private Long hotScore;//商品热评分数
        private Long brandId;//品牌id
        private Long catalogId;//分类id
        private String brandName;//品牌名称
        private String brandImg;//品牌图片
        private String catalogName;//分类名称
        private List<Attr> attrs;//该商品的规格参数及属性值

        @Data
        public static class Attr{
            private Long attrId;
            private String attrName;
            private String attrValue;
        }


}
